Add CFML (ColdFusion) support via tree-sitter-cfml #1762
Open
ghedwards wants to merge 2 commits into
Open
Conversation
Extracts components, functions, properties, includes/imports, and calls from
.cfc/.cfm (tag- and script-syntax) and .cfs, using the cfml/cfscript
tree-sitter grammars from tree-sitter-cfml. Handles the grammar's quirks
directly: a top-level script-style `component { }`/`interface { }` block is
opaque to the cfml grammar, so it's transparently re-parsed with cfscript;
nested <cfscript> blocks in tag-based files are re-parsed and merged in with
line offsets; self-closing tags (cfproperty/cfargument/cfinclude/cfimport/...)
don't expose their keyword as a tree node, so it's recovered from raw text.
Cross-file component references (extends/implements/createObject/new) resolve
dotted paths to files on disk, mirroring the existing Pascal resolver.
tree-sitter-cfml isn't published to PyPI yet, so it isn't declared as a pip
extra (that broke uv's whole-project lockfile resolution, since uv resolves
all extras together and a nonexistent PyPI package fails hard). The extractor
still works standalone via its own try/except ImportError guard for anyone
who installs the grammar manually; pyproject.toml has a NOTE for wiring up
the `cfml` extra once it's published.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNVnRRvKoij8GkPx2A3vic
tree-sitter-cfml 0.26.30 is now on PyPI with prebuilt wheels, so declare the `cfml` extra properly instead of leaving it undeclared. Re-locks cleanly through PyPI directly, no git-source workaround needed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FNVnRRvKoij8GkPx2A3vic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.